package cn.lhz.dto;


import cn.lhz.util.annotation.FieldAnnotation;
import cn.lhz.util.annotation.RowKeyAnnotation;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author 年阔正
 * @version 1.0.0
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class ItalyMonth extends Model<ItalyMonth> {
  @TableId(type = IdType.NONE)
  @RowKeyAnnotation
  @FieldAnnotation(alias = "月份")
  private long month;

  @FieldAnnotation(alias = "CO浓度")
  private double coGt;

  @FieldAnnotation(alias = "Pt08_S1_CO")
  private double pt08S1Co;

  @FieldAnnotation(alias = "NMHC浓度")
  private double nmhcGt;

  @FieldAnnotation(alias = "C6H6浓度")
  private double c6h6Gt;

  @FieldAnnotation(alias = "Pt08_S2_NMHC")
  private double pt08S2Nmhc;

  @FieldAnnotation(alias = "NOX浓度")
  private double noxGt;

  @FieldAnnotation(alias = "Pt08_S3_NOX")
  private double pt08S3Nox;

  @FieldAnnotation(alias = "NO2浓度")
  private double no2Gt;

  @FieldAnnotation(alias = "Pt08_S4_NO2")
  private double pt08S4No2;

  @FieldAnnotation(alias = "Pt08_S5_O3")
  private double pt08S5O3;

  @FieldAnnotation(alias = "温度")
  private double t;

  @FieldAnnotation(alias = "相对湿度")
  private double rh;

  @FieldAnnotation(alias = "绝对湿度")
  private double ah;

  @Override
  public String toString() {
    return this.month + "\t" +
            this.coGt + "\t" +
            this.pt08S1Co + "\t" +
            this.nmhcGt + "\t" +
            this.c6h6Gt + "\t" +
            this.pt08S2Nmhc + "\t" +
            this.noxGt + "\t" +
            this.pt08S3Nox + "\t" +
            this.no2Gt + "\t" +
            this.pt08S4No2 + "\t" +
            this.pt08S5O3 + "\t" +
            this.t + "\t" +
            this.rh + "\t" +
            this.ah;
  }
}
